<!--
 * @Author: xuhy 1727317079@qq.com
 * @Date: 2022-09-04 09:48:48
 * @LastEditors: xuhy 1727317079@qq.com
 * @LastEditTime: 2022-09-09 10:06:11
 * @FilePath: \vue3_test\src\App.vue
 * @Description: 父组件
-->
<template>
  <button @click="isShowDemoTest = !isShowDemoTest">切换隐藏/显示</button>
  <DemoTest v-if="isShowDemoTest" />
</template>

<script>
import { ref } from "vue";
import DemoTest from "./components/DemoTest";
export default {
  name: "App",
  components: {
    DemoTest,
  },
  setup() {
    let isShowDemoTest = ref(true);
    return {
      isShowDemoTest,
    };
  },
};
</script>
